package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysAnnouncement;
import org.jeecg.modules.system.entity.SysAnnouncementRead;
import org.jeecg.modules.system.entity.SysAnnouncementSend;
import org.jeecg.modules.system.model.AnnouncementSendModel;

import java.util.List;

/**
 * @Description: 用户通告阅读标记表
 * @Author: jeecg-boot
 * @Date:  2019-02-21
 * @Version: V1.0
 */
public interface SysAnnouncementReadMapper extends BaseMapper<SysAnnouncementRead> {

	Integer findReadCount(@Param("anntId") String anntId,@Param("userId") String userId);

    SysAnnouncementRead findByAnntUserId(@Param("anntId") String anntId,@Param("userId") String userId);

    void updateRead(SysAnnouncementRead read);
}
